

#include <Model/FibonacciNumberCalculator.hpp>


namespace Fibonacci
{
namespace Model
{


unsigned FibonacciNumberCalculator::get(const unsigned n)
{
  if(n == 0)
    return 0;

  if(n == 1)
    return 1;

  const unsigned fib = get(n-1) + get(n - 2);
  return fib;
}


} // namespace Model
} // namespace Fibonacci
